import fetch from './index'

export const fetchGet = (url: string, params: unknown) =>
  fetch(url, {
    method: 'get',
    params: params
  })
export const fetchPost = <T>(url: string, params: unknown): Promise<T> =>
  fetch(url, {
    method: 'post',
    data: params
  })
